int get_picture(char *file)
Parameter | Type | Description |
---|---|---|
file | char * | picture name |
Returns the picture index into picture array or -1 if picture could not be found.
This function is used to get pictures from the stock. It returns the picture index for a given string based picture name. If picture is not in the pictures array, it attempts to load the picture from disk.